package com.ktjy;

import java.io.Serializable;

public class Person extends BaseClass implements Serializable {
    public String name;
    private Integer age;

    public Person() {
    }

    private Person(String name) {
        this.name = name;
    }

    public Person(Integer age) {
        this.age = age;
    }

    public Person(String name, Integer age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    private String study(String subject){
        System.out.println("好好学习："+subject);
        return subject;
    }

    public void show(){
        System.out.println("name="+name);
        System.out.println("age="+age);
    }
}
